package com.zy.springcloud.cloudconsumeruser.service.exp;

import com.zy.springcloud.cloudconsumeruser.service.MovieServiceFeign;
import com.zy.springcloud.movie.bean.Movie;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: zy 690748807@qq.com
 * @Description: TODO
 * @Date: 2024/3/31 19:56
 * @Version: 1.0
 * @name 方法名字：
 */
@Component
public class MovieServiceFeignExceptionHandler implements MovieServiceFeign {
    /**
     * @param id
     * @return
     */

    @Override
    public Movie getNewMovie(Integer id) {
        Movie movie = new Movie();
        movie.setId(-10000);
        movie.setName("====没有的电影呕！！！！！！");
        return movie;
    }
}
